<?php require_once('Connections/sqlaerosnemanje.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>AeroPHPXML :: Brisanje GK tock</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>

<body>
<?php
mysql_select_db("aerosnemanje", $sqlaerosnemanje);
$idproj=$_GET['idprojekta'];
$gkpid=$_GET['gkpid'];
if($gkpid == 1)
{
	$delGK_query = "DELETE FROM tocke_grid WHERE IDProjekta='$idproj'";
	mysql_query($delGK_query);
	echo "Tocke Izbrisane. <a href=\"prikazi_projekte.php\">Nazaj na projekte</a>";
}
else {
  echo "<b>Si preprican, da zelis brisati?</b><br>
  <a href=\"brisi_tocke_gk.php?idprojekta=$idproj&gkpid=1\">Da, izbrisi!</a><br>
  <br>
  <a href=\"prikazi_projekte.php\">Nazaj na projekte</a>";
}
?>
</body>
</html>
